import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: "/",//默认路由
        component:()=> import('@/views/login.vue')
    },
    {
        path: "/index",
        component:()=> import('@/views/index.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router